package com.party.poster.element;


import com.party.poster.AbstractPoster;
import com.party.poster.entity.Position;
import com.party.poster.entity.Size;
import com.party.poster.enums.EnumShape;

import java.awt.*;

/**
 * 图形
 */
public class Graphical extends AbstractPoster {

    private EnumShape shape;

    private Color color;

    private int arcW = 0;

    private int arcH = 0;

    public Graphical(int w, int h, int x, int y, Color color){
        this.size = new Size(w,h);
        this.position = new Position(x,y);
        this.color = color;
        this.shape = EnumShape.None;
    }

    public Graphical(int w, int h, int x, int y, Color color, EnumShape shape, int arcW, int arcH){
        this.size = new Size(w,h);
        this.position = new Position(x,y);
        this.color = color;
        this.shape = shape;
        this.arcW = arcW;
        this.arcH = arcH;
    }

    public EnumShape getShape() {
        return shape;
    }

    public Color getColor() {
        return color;
    }

    public int getArcW() {
        return arcW;
    }

    public int getArcH() {
        return arcH;
    }
}
